<?xml version="1.0" encoding="UTF-8"?>
<ticket>
  <assigned-user-id type="integer">20241</assigned-user-id>
  <attachments-count type="integer">0</attachments-count>
  <closed type="boolean">false</closed>
  <created-at type="datetime">2008-10-25T07:11:30-05:00</created-at>
  <creator-id type="integer">34151</creator-id>
  <milestone-due-on type="datetime" nil="true"></milestone-due-on>
  <milestone-id type="integer" nil="true"></milestone-id>
  <number type="integer">23</number>
  <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
  <priority type="integer">23</priority>
  <project-id type="integer">15332</project-id>
  <raw-data type="binary" nil="true" encoding="base64"></raw-data>
  <state>new</state>
  <tag>cucumber features generator rspec stories</tag>
  <title>Use Cucumber Features instead of RSpec Stories</title>
  <updated-at type="datetime">2009-06-25T00:36:52-05:00</updated-at>
  <user-id type="integer">31493</user-id>
  <user-name>Sam Pierson</user-name>
  <creator-name>Paul Cortens</creator-name>
  <assigned-user-name>mrflip</assigned-user-name>
  <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
  <original-body>Since Cucumber is going to (eventually) replace RSpec's story running, it would probably be a good idea to generate Cucumber Features instead of RSpec Stories.</original-body>
  <latest-body>Since Cucumber is going to (eventually) replace RSpec's story running, it would probably be a good idea to generate Cucumber Features instead of RSpec Stories.</latest-body>
  <original-body-html>&lt;div&gt;&lt;p&gt;Since Cucumber is going to (eventually) replace RSpec's story
running, it would probably be a good idea to generate Cucumber
Features instead of RSpec Stories.&lt;/p&gt;&lt;/div&gt;</original-body-html>
  <versions type="array">
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Since Cucumber is going to (eventually) replace RSpec's story running, it would probably be a good idea to generate Cucumber Features instead of RSpec Stories.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Since Cucumber is going to (eventually) replace RSpec's story
running, it would probably be a good idea to generate Cucumber
Features instead of RSpec Stories.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2008-10-25T07:11:30-05:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2008-10-25T07:11:32-05:00</updated-at>
      <user-id type="integer">34151</user-id>
      <user-name>Paul Cortens</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I've got a fork that generates Cucumber features instead of RSpec stories available [Here](http://github.com/bryan-ash/restful-authentication/tree &quot;here&quot;)

I didn't add or remove any functionality, just moved the stories over and made them work as features.</body>
      <body-html>&lt;div&gt;&lt;p&gt;I've got a fork that generates Cucumber features instead of
RSpec stories available &lt;a href=&quot;http://github.com/bryan-ash/restful-authentication/tree&quot; title=&quot;here&quot;&gt;Here&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I didn't add or remove any functionality, just moved the stories
over and made them work as features.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-01-11T21:41:57-06:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-01-11T21:41:59-06:00</updated-at>
      <user-id type="integer">20827</user-id>
      <user-name>Bryan</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Bryan, did you test by running only `rake features`?  Or also with autospec and/or running `cucumber features` directly?  I'm finding the latter cases failing, though running under rake works great.

When not in Rake, I get all the code in ra_env.rb complaining about the classes not being loaded (ApplicationController and Fixtures).</body>
      <body-html>&lt;div&gt;&lt;p&gt;Bryan, did you test by running only &lt;code&gt;rake features&lt;/code&gt;?
Or also with autospec and/or running &lt;code&gt;cucumber features&lt;/code&gt;
directly? I'm finding the latter cases failing, though running
under rake works great.&lt;/p&gt;
&lt;p&gt;When not in Rake, I get all the code in ra_env.rb complaining
about the classes not being loaded (ApplicationController and
Fixtures).&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-02-15T15:07:21-06:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-02-15T15:07:23-06:00</updated-at>
      <user-id type="integer">41525</user-id>
      <user-name>Randy Harmon</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Randy,

I typically don't run cucumber with autospec, it seems better suited to RSpec.

I just ran &quot;cucumber features&quot; and autospec over the features, both with no errors.

I am using cucumber version 0.1.16, Rails 2.2.2, ZenTest 3.11.1, Ruby 1.8.6 patchlevel 111.

I don't know if that particular combo is what's doing it for me.

Bryan</body>
      <body-html>&lt;div&gt;&lt;p&gt;Randy,&lt;/p&gt;
&lt;p&gt;I typically don't run cucumber with autospec, it seems better
suited to RSpec.&lt;/p&gt;
&lt;p&gt;I just ran &quot;cucumber features&quot; and autospec over the features,
both with no errors.&lt;/p&gt;
&lt;p&gt;I am using cucumber version 0.1.16, Rails 2.2.2, ZenTest 3.11.1,
Ruby 1.8.6 patchlevel 111.&lt;/p&gt;
&lt;p&gt;I don't know if that particular combo is what's doing it for
me.&lt;/p&gt;
&lt;p&gt;Bryan&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-02-16T19:48:50-06:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-02-16T19:48:54-06:00</updated-at>
      <user-id type="integer">20827</user-id>
      <user-name>Bryan</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I'm obviously doing something wrong. I downloaded the forked project, created a bare Rails app (2.2.2) ran the usual script/generate authenticated user Sessions --aasm --rspec, then tried rake features and it all went pear shaped.

After putting in place the things that were missing, a route to '/' and a application view with a &lt;div class = &quot;notice&quot;&gt; I'm still getting errors.

What else needs to be in place from a bare installation to get these features to run without errors?  

Other people are doing this without a problem. Is it my setup? I'm using Rspec &amp; Rspec rails as gems 1.1.12, and Cucumber as a gem 0.1.16.</body>
      <body-html>&lt;div&gt;&lt;p&gt;I'm obviously doing something wrong. I downloaded the forked
project, created a bare Rails app (2.2.2) ran the usual
script/generate authenticated user Sessions --aasm --rspec, then
tried rake features and it all went pear shaped.&lt;/p&gt;
&lt;p&gt;After putting in place the things that were missing, a route to
'/' and a application view with a&lt;/p&gt;
&lt;div class=&quot;notice&quot;&gt;I'm still getting errors.
&lt;p&gt;What else needs to be in place from a bare installation to get
these features to run without errors?&lt;br&gt;&lt;/p&gt;
&lt;p&gt;Other people are doing this without a problem. Is it my setup?
I'm using Rspec &amp;amp; Rspec rails as gems 1.1.12, and Cucumber as a
gem 0.1.16.&lt;/p&gt;
&lt;/div&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-02T04:30:23-06:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-03-02T04:30:32-06:00</updated-at>
      <user-id type="integer">37100</user-id>
      <user-name>John Small</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>OK, I think I've sorted out what's going on. It seems that the latest version of restful-authentication with aasm doesn't allow a user to log in unless they've been activated. So the generators have to take note of the &quot;--aasm&quot; or &quot;--stateful&quot; or &quot;--include-activation&quot; and then add an extra step to activate a new account before it can log in. 

There're a couple of other areas where the features don't match the current behaviour of RA, so places where it says &quot;And Oona should be logged in&quot; has to change to &quot;And Oona should not be logged in&quot;, because Oona is an unactivated user and can't log in. 

Also I'll question the extra lines on the &quot;Scenario: Anonymous user can not create an account with bad email&quot;. It does extra stuff to create a new user after the verification that a user can't be created with a bad email. The extra stuff goes ahead and puts a correct email in and creates a new user and then fails when testing that login has been succesful because Oona can't log in. 

It looks like it's been copied in from &quot;Scenario: Anonymous user can create an account&quot; because it follows the exact same steps after it gets the error message about the bad email.

Do you want to edit it or shall I fork it and edit it myself?</body>
      <body-html>&lt;div&gt;&lt;p&gt;OK, I think I've sorted out what's going on. It seems that the
latest version of restful-authentication with aasm doesn't allow a
user to log in unless they've been activated. So the generators
have to take note of the &quot;--aasm&quot; or &quot;--stateful&quot; or
&quot;--include-activation&quot; and then add an extra step to activate a new
account before it can log in.&lt;/p&gt;
&lt;p&gt;There're a couple of other areas where the features don't match
the current behaviour of RA, so places where it says &quot;And Oona
should be logged in&quot; has to change to &quot;And Oona should not be
logged in&quot;, because Oona is an unactivated user and can't log
in.&lt;/p&gt;
&lt;p&gt;Also I'll question the extra lines on the &quot;Scenario: Anonymous
user can not create an account with bad email&quot;. It does extra stuff
to create a new user after the verification that a user can't be
created with a bad email. The extra stuff goes ahead and puts a
correct email in and creates a new user and then fails when testing
that login has been succesful because Oona can't log in.&lt;/p&gt;
&lt;p&gt;It looks like it's been copied in from &quot;Scenario: Anonymous user
can create an account&quot; because it follows the exact same steps
after it gets the error message about the bad email.&lt;/p&gt;
&lt;p&gt;Do you want to edit it or shall I fork it and edit it
myself?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-02T09:56:21-06:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-03-02T09:56:24-06:00</updated-at>
      <user-id type="integer">37100</user-id>
      <user-name>John Small</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>John,

sounds like you have a good contribution to make and are all over it ... I say have at it!

I've been looking at the rest-auth features in the fbrp project.  The feature specs are written in a declarative manner making them easier (I think) to understand.  Maybe these would be a better way to go?</body>
      <body-html>&lt;div&gt;&lt;p&gt;John,&lt;/p&gt;
&lt;p&gt;sounds like you have a good contribution to make and are all
over it ... I say have at it!&lt;/p&gt;
&lt;p&gt;I've been looking at the rest-auth features in the fbrp project.
The feature specs are written in a declarative manner making them
easier (I think) to understand. Maybe these would be a better way
to go?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-02T10:30:58-06:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-03-02T10:31:01-06:00</updated-at>
      <user-id type="integer">20827</user-id>
      <user-name>Bryan</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>The only awkward bit I can see is the business of responding to --aasm and so on. As the feature generator currently stands it just does a one size fits all set of scenarios. To get it to respond appropriately to user input the template would probably need to be in erb format. Which is not a small change from what is there now. I'll look at it later on this week when I've got some more time.</body>
      <body-html>&lt;div&gt;&lt;p&gt;The only awkward bit I can see is the business of responding to
--aasm and so on. As the feature generator currently stands it just
does a one size fits all set of scenarios. To get it to respond
appropriately to user input the template would probably need to be
in erb format. Which is not a small change from what is there now.
I'll look at it later on this week when I've got some more
time.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-03-02T11:12:12-06:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-03-02T11:12:15-06:00</updated-at>
      <user-id type="integer">37100</user-id>
      <user-name>John Small</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Randy,
Did you ever get your NameError solved?
I too am getting &quot;uninitialized constant ApplicationController&quot;
Figure out what it was?
Thanks,
-Sam.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Randy, Did you ever get your NameError solved? I too am getting
&quot;uninitialized constant ApplicationController&quot; Figure out what it
was? Thanks, -Sam.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-04-13T15:29:57-05:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-04-13T15:29:58-05:00</updated-at>
      <user-id type="integer">31493</user-id>
      <user-name>Sam Pierson</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Nevermind - I am too new too cucumber.  I figured it out.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Nevermind - I am too new too cucumber. I figured it out.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-04-13T20:40:52-05:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-04-13T20:40:56-05:00</updated-at>
      <user-id type="integer">31493</user-id>
      <user-name>Sam Pierson</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Sam, Did you ever get your NameError solved? I am new to cucumber too, I installed restful_authentication and it came with two .feature files and a bunch of step_definitions, looking like this in my features folder:

features/
  accounts.feature
  sessions.feature
  step_definitions/
    ra_env.rb
    ra_navigation_steps.rb
    ra_resource_steps.rb
    ra_response_steps.rb
    rest_auth_features_helper.rb
    user_steps.rb


When I run them, I'm getting

$ cucumber features
uninitialized constant ApplicationController (NameError)
./features/step_definitions/ra_env.rb:15
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in `polyglot_original_require'
/Library/Ruby/Gems/1.8/gems/polyglot-0.2.6/lib/polyglot.rb:55:in `require'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:95:in `require_files'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:104:in `each_lib'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:102:in `each'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:102:in `each_lib'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:95:in `require_files'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:47:in `execute!'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:25:in `execute'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/cucumber:9
/usr/bin/cucumber:19:in `load'
/usr/bin/cucumber:19


Did I miss something trivial?</body>
      <body-html>&lt;div&gt;&lt;p&gt;Sam, Did you ever get your NameError solved? I am new to
cucumber too, I installed restful_authentication and it came with
two .feature files and a bunch of step_definitions, looking like
this in my features folder:&lt;/p&gt;
&lt;p&gt;features/&lt;br&gt;
accounts.feature sessions.feature step_definitions/&lt;/p&gt;
&lt;pre&gt;
&lt;code&gt;ra_env.rb
ra_navigation_steps.rb
ra_resource_steps.rb
ra_response_steps.rb
rest_auth_features_helper.rb
user_steps.rb&lt;/code&gt;
&lt;/pre&gt;
&lt;p&gt;When I run them, I'm getting&lt;/p&gt;
&lt;p&gt;$ cucumber features uninitialized constant ApplicationController
(NameError)&lt;br&gt;
./features/step_definitions/ra_env.rb:15
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in
&lt;code&gt;gem_original_require'
/Library/Ruby/Site/1.8/rubygems/custom_require.rb:31:in&lt;/code&gt;polyglot_original_require'
/Library/Ruby/Gems/1.8/gems/polyglot-0.2.6/lib/polyglot.rb:55:in
&lt;code&gt;require'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:95:in&lt;/code&gt;require_files'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:104:in
&lt;code&gt;each_lib'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:102:in&lt;/code&gt;each'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:102:in
&lt;code&gt;each_lib'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:95:in&lt;/code&gt;require_files'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:47:in
&lt;code&gt;execute!'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/../lib/cucumber/cli/main.rb:25:in&lt;/code&gt;execute'
/Library/Ruby/Gems/1.8/gems/cucumber-0.3.11/bin/cucumber:9
/usr/bin/cucumber:19:in &lt;code&gt;load' /usr/bin/cucumber:19&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;Did I miss something trivial?&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-06-24T16:30:30-05:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-06-24T16:30:33-05:00</updated-at>
      <user-id type="integer">55212</user-id>
      <user-name>JasonFB</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>sorry, that text I pasted of the folder structure didn't come out too well :(</body>
      <body-html>&lt;div&gt;&lt;p&gt;sorry, that text I pasted of the folder structure didn't come
out too well :(&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-06-24T16:31:10-05:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-06-24T16:31:15-05:00</updated-at>
      <user-id type="integer">55212</user-id>
      <user-name>JasonFB</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>Yup.  It was a while ago but as I recall I just reran &quot;script/generate cucumber&quot; and they world was a happier place.</body>
      <body-html>&lt;div&gt;&lt;p&gt;Yup. It was a while ago but as I recall I just reran
&quot;script/generate cucumber&quot; and they world was a happier place.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-06-24T17:32:19-05:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-06-24T17:32:24-05:00</updated-at>
      <user-id type="integer">31493</user-id>
      <user-name>Sam Pierson</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I see. 

Yes, thanks. That error has gone away for me.

Now cucumber is having some problems with what's in these restful_authentication tests. Like I said, I didn't write these, I think they appeared here when I installed restful_authentication? (does that make sense?) That's what I'm guessing. Note: I installed cucumber after I installed restful_authentication, but ran &quot;script/generate cucumber&quot; in the process of getting cucumber setup. So really I'm just running cucumber for the first time on these restful_authentication tests and they are failing out of the box, wonder if anyone else is seeing this.

$ cucumber features/profile.feature 
Multiple step definitions have the same Regexp:

features/step_definitions/user_steps.rb:16:in `/^(.*) (.*) user named '(.*)'$/'
features/step_definitions/user_steps.rb:29:in `/^there is no (.*) user named '(.*)'$/'


user_steps.rb, line 16:

Given &quot;$an $user_type user named '$login'&quot; do |_, user_type, login|
  create_user! user_type, named_user(login)
end



user_steps.rb, line 29:


Given &quot;there is no $user_type user named '$login'&quot; do |_, login|
  @user = User.find_by_login(login)
  @user.destroy! if @user
  @user.should be_nil
end</body>
      <body-html>&lt;div&gt;&lt;p&gt;I see.&lt;/p&gt;
&lt;p&gt;Yes, thanks. That error has gone away for me.&lt;/p&gt;
&lt;p&gt;Now cucumber is having some problems with what's in these
restful_authentication tests. Like I said, I didn't write these, I
think they appeared here when I installed restful_authentication?
(does that make sense?) That's what I'm guessing. Note: I installed
cucumber after I installed restful_authentication, but ran
&quot;script/generate cucumber&quot; in the process of getting cucumber
setup. So really I'm just running cucumber for the first time on
these restful_authentication tests and they are failing out of the
box, wonder if anyone else is seeing this.&lt;/p&gt;
&lt;p&gt;$ cucumber features/profile.feature Multiple step definitions
have the same Regexp:&lt;/p&gt;
&lt;p&gt;features/step_definitions/user_steps.rb:16:in &lt;code&gt;/^(.*) (.*)
user named '(.*)'$/'&amp;lt;br/&amp;gt;
features/step_definitions/user_steps.rb:29:in&lt;/code&gt;/^there is no
(.&lt;em&gt;) user named '(.&lt;/em&gt;)'$/'&lt;/p&gt;
&lt;p&gt;user_steps.rb, line 16:&lt;/p&gt;
&lt;p&gt;Given &quot;$an $user_type user named '$login'&quot; do |_, user_type,
login|&lt;br&gt;
create_user! user_type, named_user(login) end&lt;/p&gt;
&lt;p&gt;user_steps.rb, line 29:&lt;/p&gt;
&lt;p&gt;Given &quot;there is no $user_type user named '$login'&quot; do |_,
login|&lt;br&gt;
@user = User.find_by_login(login) @user.destroy! if @user
@user.should be_nil end&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-06-24T21:56:47-05:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-06-24T21:56:52-05:00</updated-at>
      <user-id type="integer">55212</user-id>
      <user-name>JasonFB</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
    <version type="Ticket::Version">
      <assigned-user-id type="integer">20241</assigned-user-id>
      <attachments-count type="integer">0</attachments-count>
      <body>I seem to recall some of the restful_authentication feature specs being broken, or at least not working if you didn't use the default options.  If you're interested I ended up fixing them as part of some work I did on it in my github branch: git://github.com/ombwa/restful-authentication.git (I added options for --haml and --email-only).
-Sam.</body>
      <body-html>&lt;div&gt;&lt;p&gt;I seem to recall some of the restful_authentication feature
specs being broken, or at least not working if you didn't use the
default options. If you're interested I ended up fixing them as
part of some work I did on it in my github branch:
git://github.com/ombwa/restful-authentication.git (I added options
for --haml and --email-only).&lt;br&gt;
-Sam.&lt;/p&gt;&lt;/div&gt;</body-html>
      <closed type="boolean">false</closed>
      <created-at type="datetime">2009-06-25T00:36:48-05:00</created-at>
      <creator-id type="integer">34151</creator-id>
      <diffable-attributes type="yaml">--- {}

</diffable-attributes>
      <milestone-id type="integer" nil="true"></milestone-id>
      <number type="integer">23</number>
      <permalink>use-cucumber-features-instead-of-rspec-stories</permalink>
      <priority type="integer">0</priority>
      <project-id type="integer">15332</project-id>
      <state>new</state>
      <tag>cucumber features generator rspec stories</tag>
      <title>Use Cucumber Features instead of RSpec Stories</title>
      <updated-at type="datetime">2009-06-25T00:36:52-05:00</updated-at>
      <user-id type="integer">31493</user-id>
      <user-name>Sam Pierson</user-name>
      <creator-name>Paul Cortens</creator-name>
      <assigned-user-name>mrflip</assigned-user-name>
      <url>http://rails_security.lighthouseapp.com/projects/15332/tickets/23</url>
    </version>
  </versions>
</ticket>
